{% extends 'framework.html' %}

{% block subject %}DNS日志{% endblock %}

{% block content %}
<div class="panel panel-default">
 <div class="panel-heading">DNS日志</div>
 <div class="panel-body">
   <table class="table table-striped">
      <thead>
         <tr>
            <th width="10%">时间</th>
            <th>域名</th>
            <th width="15%">IP地址</th>
            <th width="10%">类型</th>
            <th width="15%">管理</th>
         </tr>
      </thead>
      <tbody>
        {% for object in object_list %}
         <tr>
            <td>{{ object.created_time | date:"Y-m-d H:i:s" }}</td>
            <td>{{ object.hostname }}</td>
            <td><span class="label label-info">{{ object.ip_addr }}</span></td>
            <td>{{ object.dns_type }}</td>
            <td><button type="button" class="btn-xs btn btn-primary btn-outline">查看</button></td>
         </tr>
        {% endfor %}
      </tbody>
   </table>
 </div>
 {% if is_paginated %}
 <div class="panel-footer">
   <div class="pull-right">
    {% include 'pure_pagination/pagination-bootstrap.html' %}
   </div>
   <div class="clearfix"></div>
</div>
 {% endif %}
</div>
{% endblock %}